package cn.tedu.account.service;

import cn.tedu.account.tcc.AccountTccAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
@Service
public class AccountServiceImpl implements AccountService {
   @Autowired
   private AccountTccAction tcc;
    @Override
    public void derease(Long userId, BigDecimal money) {
        tcc.prepare(null,userId, money);
    }
}
